-- GENERATED SPELL FOR [Tunnel Rat Forager] --


function spell0_1176(pUnit, Event) --@Bottle of Poison,n/a--
pUnit:FullCastSpellOnTarget(7365,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1176', 30000, 1)
end

function Sorts_1176(pUnit, Event)
local choix_sorts_1176 = math.random(0, 0)
if choix_sorts_1176 == 0 then
pUnit:RegisterEvent('spell0_1176', 1, 1)
end
end

function mob1176_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1176', math.random(1500, 3000), 1)
end

function mob1176_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1176_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1176_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1176, 1, 'mob1176_Action')
RegisterUnitEvent(1176, 2, 'mob1176_Leave')
RegisterUnitEvent(1176, 3, 'mob1176_Kill')
RegisterUnitEvent(1176, 4, 'mob1176_Die')
